package com.framework.enums;

import java.util.HashMap;
import java.util.LinkedHashMap;

public enum  PaddleHubModuleEnum {
    CHINESE_OCR_DB_CRNN_MOBILE("chinese_ocr_db_crnn_mobile", "1.2.0","文字识别OCR")
    , PYRAMIDBOX_LITE_SERVER("pyramidbox_lite_server", "1.1.1","人脸识别")

    ;

    private final String name;
    private final String version;
    private final String comment;

    private static final HashMap<String,String> paddleHubModuleMap = new LinkedHashMap<>();
    PaddleHubModuleEnum(String name, String version,String comment) {
        this.name = name;
        this.version = version;
        this.comment = comment;
    }
    static {
        paddleHubModuleMap.put(CHINESE_OCR_DB_CRNN_MOBILE.name,CHINESE_OCR_DB_CRNN_MOBILE.comment);
        paddleHubModuleMap.put(PYRAMIDBOX_LITE_SERVER.name,PYRAMIDBOX_LITE_SERVER.comment);
    }

    public String getName() {
        return name;
    }

    public String getVersion() {
        return version;
    }

    public String getComment() {
        return comment;
    }

    public static HashMap<String, String> getPaddleHubModuleMap() {
        return paddleHubModuleMap;
    }
}
